//
//  BaoJiaBottomButView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/11.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "BaoJiaBottomButView.h"

@implementation BaoJiaBottomButView

-(id)initWithFrame:(CGRect)aFrame inSuperView:(UIView *)aSuperView{
    if (self = [super initWithFrame:aFrame inSuperView:aSuperView]) {
        self.backgroundColor = [UIColor whiteColor];
        GLGWButton * leftBut = [[GLGWButton alloc] initWithTitleLableFontType:SYSTEMFONT(10) titleColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        leftBut.title = @"联系求购人";
        [leftBut mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.bottom.equalTo(self);
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(80)));
        }];
        //
        GLGWButton * comintBut = [[GLGWButton alloc] initWithTitle:@"提交报价" titleLableFont:SYSTEMFONT(16) titleLableColor:[UIColor whiteColor] theCornerRadius:kHeightProportion_In_iPhoneTriploid(20) backgroundColr:kColor_Rule_Yellow inSuperView:self];
        [comintBut mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(leftBut.mas_right).offset(0);
            make.right.equalTo(self.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(40)));
            make.centerY.equalTo(self);
        }];
    }
    return self;
}

@end
